package com.rfy.user.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author simaduoduo
 * @date 2019/7/25 12:21
 * @desc 书签实体类
 */
@Data
public class Bookmark {

    /**
     * 书签id
     */
    @ApiModelProperty(name = "id", value = "书签号", dataType = "Integer", example = "1", required = true)
    private int id;
    /**
     * 用户id
     */
    @ApiModelProperty(name = "userId", value = "用户号", dataType = "Integer", example = "1", required = true)
    private int userId;
    /**
     * 书签名字
     */
    @ApiModelProperty(name = "name", value = "书签名", dataType = "String", example = "辣哥最爱", required = true)
    private String name;
    /**
     * 书籍名字
     */
    @ApiModelProperty(name = "bookName", value = "书名", dataType = "String", example = "少妇白洁", required = true)
    private String bookName;
    /**
     * 链接
     */
    @NotBlank
    @ApiModelProperty(name = "href", value = "链接", dataType = "String", example = "http://*", required = true)
    private String href;
}
